<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos  -->
			<title>Docs For Class DbPdo</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
						<script src="../media/lib/classTree.js"></script>
												<script language="javascript" type="text/javascript">
				var imgPlus = new Image();
				var imgMinus = new Image();
				imgPlus.src = "../media/images/plus.png";
				imgMinus.src = "../media/images/minus.png";
				
				function showNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgMinus.src;
					oTable.style.display = "block";
				}
				
				function hideNode(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
							var oImg = document.layers["img" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
							var oImg = document.all["img" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
							var oImg = document.getElementById("img" + Node);
									break;
							}
					oImg.src = imgPlus.src;
					oTable.style.display = "none";
				}
				
				function nodeIsVisible(Node){
							switch(navigator.family){
								case 'nn4':
									// Nav 4.x code fork...
							var oTable = document.layers["span" + Node];
									break;
								case 'ie4':
									// IE 4/5 code fork...
							var oTable = document.all["span" + Node];
									break;
								case 'gecko':
									// Standards Compliant code fork...
							var oTable = document.getElementById("span" + Node);
									break;
							}
					return (oTable && oTable.style.display == "block");
				}
				
				function toggleNodeVisibility(Node){
					if (nodeIsVisible(Node)){
						hideNode(Node);
					}else{
						showNode(Node);
					}
				}
			</script>
					</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/Class_logo.png"
														alt=" Class"
														title=" Class"
														style="vertical-align: middle"> DbPdo</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">PDO database class object.</p>
	<ul class="tags">
				<li><span class="field">author:</span> Lei Lee</li>
				<li><span class="field">version:</span> 1.0</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_core---DbPdo.class.php.html">/core/DbPdo.class.php</a> (line <span class="field">11</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>


	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#PDO_SQL_EXECUTE_INSERT" title="details" class="const-name">PDO_SQL_EXECUTE_INSERT</a> = 					<span class="var-type"> 4</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#PDO_SQL_EXECUTE_UPDATE_OR_DELETE" title="details" class="const-name">PDO_SQL_EXECUTE_UPDATE_OR_DELETE</a> = 					<span class="var-type"> 5</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#PDO_SQL_QUERY_FETCH_ALL" title="details" class="const-name">PDO_SQL_QUERY_FETCH_ALL</a> = 					<span class="var-type"> 2</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#PDO_SQL_QUERY_FETCH_COLUMN" title="details" class="const-name">PDO_SQL_QUERY_FETCH_COLUMN</a> = 					<span class="var-type"> 3</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#PDO_SQL_QUERY_FETCH_ROW" title="details" class="const-name">PDO_SQL_QUERY_FETCH_ROW</a> = 					<span class="var-type"> 1</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#SQL_TYPE_DELETE" title="details" class="const-name">SQL_TYPE_DELETE</a> = 					<span class="var-type"> 3</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#SQL_TYPE_INSERT" title="details" class="const-name">SQL_TYPE_INSERT</a> = 					<span class="var-type"> 1</span>

				</div>
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#SQL_TYPE_UPDATE" title="details" class="const-name">SQL_TYPE_UPDATE</a> = 					<span class="var-type"> 2</span>

				</div>
							</div>
		</div>
	</div>


	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
									<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																																															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#addDatabase" title="details" class="method-name">addDatabase</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>, <span class="var-type"><a href="../RadishPHP/DbParameter.html">DbParameter</a></span>&nbsp;<span class="var-name">$database</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$default</span> = <span class="var-default">false</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#addDbParams" title="details" class="method-name">addDbParams</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$dbParams</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$dbParams</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#change" title="details" class="method-name">change</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#close" title="details" class="method-name">close</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#execute" title="details" class="method-name">execute</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">NULL</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$sql_type</span> = <span class="var-default">2</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#fetch" title="details" class="method-name">fetch</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$fetch_style</span> = <span class="var-default">PDO::FETCH_ASSOC</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$field_name_as_key</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#fetchAdapter" title="details" class="method-name">fetchAdapter</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">&$adapter</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$dataParams</span> = <span class="var-default">array()</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$adapter</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#fetchs" title="details" class="method-name">fetchs</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$fetch_style</span> = <span class="var-default">PDO::FETCH_ASSOC</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$field_name_as_key</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result"><a href="../RadishPHP/DbParameter.html">DbParameter</a></span>
										<a href="#getDatabase" title="details" class="method-name">getDatabase</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>)
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">boolean</span>
										<a href="#isActived" title="details" class="method-name">isActived</a>
										()
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#isSilent" title="details" class="method-name">isSilent</a>
											([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$is_silent</span> = <span class="var-default">true</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">DbPdo</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											([<span class="var-type">string</span>&nbsp;<span class="var-name">$db_default_key</span> = <span class="var-default">NULL</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">mixed</span>
										<a href="#scalar" title="details" class="method-name">scalar</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$column_index</span> = <span class="var-default">0</span>])
									</div>
															
				<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#useDb" title="details" class="method-name">useDb</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$dbname</span>)
									</div>
											</div>
		</div>
	</div>		

	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodaddDatabase" id="addDatabase"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">addDatabase</span> (line <span class="line-number">112</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Add a data source.</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addDatabase
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>, <span class="var-type"><a href="../RadishPHP/DbParameter.html">DbParameter</a></span>&nbsp;<span class="var-name">$database</span>, [<span class="var-type">boolean</span>&nbsp;<span class="var-name">$default</span> = <span class="var-default">false</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$key</span>			</li>
					<li>
				<span class="var-type"><a href="../RadishPHP/DbParameter.html">DbParameter</a></span>
				<span class="var-name">$database</span>			</li>
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$default</span>			</li>
				</ul>
		
			
	</div>
<a name="methodaddDbParams" id="addDbParams"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">addDbParams</span> (line <span class="line-number">162</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">DbParameter Parameter parser.</p>
<p class="description"><p>Parameter object passed in here is a two-dimensional array.  The value must include the database type, name, login password and other information.</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			addDbParams
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$dbParams</span>, <span class="var-type">array</span>&nbsp;<span class="var-name">$dbParams</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$dbParams</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$dbParams</span>			</li>
				</ul>
		
			
	</div>
<a name="methodchange" id="change"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">change</span> (line <span class="line-number">141</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Switch the database connection.</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			change
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$key</span>			</li>
				</ul>
		
			
	</div>
<a name="methodclose" id="close"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">close</span> (line <span class="line-number">132</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">PDO connection object destruction.</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			close
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodexecute" id="execute"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">execute</span> (line <span class="line-number">270</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Executive INSERT/UPDATE/DELETE query such updates.</p>
<p class="description"><p>If the INSERT query is executed, it returns the last inserted primary key column values.</p></p>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			execute
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">NULL</span>], [<span class="var-type">int</span>&nbsp;<span class="var-name">$sql_type</span> = <span class="var-default">2</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span>			</li>
					<li>
				<span class="var-type">int</span>
				<span class="var-name">$sql_type</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfetch" id="fetch"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">fetch</span> (line <span class="line-number">239</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Executive SELECT query and returns a single line records.</p>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			fetch
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$fetch_style</span> = <span class="var-default">PDO::FETCH_ASSOC</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$field_name_as_key</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$fetch_style</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field_name_as_key</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfetchAdapter" id="fetchAdapter"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">fetchAdapter</span> (line <span class="line-number">189</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Based on the type of object passed in, execute different SQL queries.</p>
<p class="description"><p>It depends on what type the incoming object.</p><p>Note: Currently only supports PageAdapter object specified number of data reads the result set.</p></p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			fetchAdapter
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">&$adapter</span>, [<span class="var-type"></span>&nbsp;<span class="var-name">$dataParams</span> = <span class="var-default">array()</span>], <span class="var-type">mixed</span>&nbsp;<span class="var-name">$adapter</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">mixed</span>
				<span class="var-name">$adapter</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">&$adapter</span>			</li>
					<li>
				<span class="var-type"></span>
				<span class="var-name">$dataParams</span>			</li>
				</ul>
		
			
	</div>
<a name="methodfetchs" id="fetchs"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">fetchs</span> (line <span class="line-number">221</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Executive SELECT query and returns all the records.</p>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			fetchs
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$fetch_style</span> = <span class="var-default">PDO::FETCH_ASSOC</span>], [<span class="var-type">string</span>&nbsp;<span class="var-name">$field_name_as_key</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$fetch_style</span>			</li>
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$field_name_as_key</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetDatabase" id="getDatabase"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getDatabase</span> (line <span class="line-number">124</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Get the database parameter object.</p>
	
	<div class="method-signature">
		<span class="method-result"><a href="../RadishPHP/DbParameter.html">DbParameter</a></span>
		<span class="method-name">
			getDatabase
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$key</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$key</span>			</li>
				</ul>
		
			
	</div>
<a name="methodisActived" id="isActived"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">isActived</span> (line <span class="line-number">284</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Identity connected?</p>
	
	<div class="method-signature">
		<span class="method-result">boolean</span>
		<span class="method-name">
			isActived
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodisSilent" id="isSilent"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">isSilent</span> (line <span class="line-number">293</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Set SQL query silent mode.</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			isSilent
		</span>
					([<span class="var-type">boolean</span>&nbsp;<span class="var-name">$is_silent</span> = <span class="var-default">true</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">boolean</span>
				<span class="var-name">$is_silent</span>			</li>
				</ul>
		
			
	</div>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">100</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constructor.</p>
	
	<div class="method-signature">
		<span class="method-result">DbPdo</span>
		<span class="method-name">
			__construct
		</span>
					([<span class="var-type">string</span>&nbsp;<span class="var-name">$db_default_key</span> = <span class="var-default">NULL</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$db_default_key</span>			</li>
				</ul>
		
			
	</div>
<a name="methodscalar" id="scalar"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">scalar</span> (line <span class="line-number">256</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Specified in the query returns a single row result column values​​.</p>
	
	<div class="method-signature">
		<span class="method-result">mixed</span>
		<span class="method-name">
			scalar
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$sql</span>, [<span class="var-type">array</span>&nbsp;<span class="var-name">$data</span> = <span class="var-default">NULL</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$column_index</span> = <span class="var-default">0</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$sql</span>			</li>
					<li>
				<span class="var-type">array</span>
				<span class="var-name">$data</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$column_index</span>			</li>
				</ul>
		
			
	</div>
<a name="methoduseDb" id="useDb"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">useDb</span> (line <span class="line-number">151</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Change the current database. (Only for MySQL database connections)</p>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			useDb
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$dbname</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$dbname</span><span class="var-description">: The database name.</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constPDO_SQL_EXECUTE_INSERT" id="PDO_SQL_EXECUTE_INSERT"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">PDO_SQL_EXECUTE_INSERT</span>
			 = <span class="const-default"> 4</span>
			(line <span class="line-number">34</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Execute INSERT statement.</p>
	
	
</div>
<a name="constPDO_SQL_EXECUTE_UPDATE_OR_DELETE" id="PDO_SQL_EXECUTE_UPDATE_OR_DELETE"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">PDO_SQL_EXECUTE_UPDATE_OR_DELETE</span>
			 = <span class="const-default"> 5</span>
			(line <span class="line-number">40</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Perform UPDATE / DELETE statements.</p>
	
	
</div>
<a name="constPDO_SQL_QUERY_FETCH_ALL" id="PDO_SQL_QUERY_FETCH_ALL"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">PDO_SQL_QUERY_FETCH_ALL</span>
			 = <span class="const-default"> 2</span>
			(line <span class="line-number">22</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return the entire result set.</p>
	
	
</div>
<a name="constPDO_SQL_QUERY_FETCH_COLUMN" id="PDO_SQL_QUERY_FETCH_COLUMN"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">PDO_SQL_QUERY_FETCH_COLUMN</span>
			 = <span class="const-default"> 3</span>
			(line <span class="line-number">28</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a single row single column result.</p>
	
	
</div>
<a name="constPDO_SQL_QUERY_FETCH_ROW" id="PDO_SQL_QUERY_FETCH_ROW"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">PDO_SQL_QUERY_FETCH_ROW</span>
			 = <span class="const-default"> 1</span>
			(line <span class="line-number">16</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Return single records.</p>
	
	
</div>
<a name="constSQL_TYPE_DELETE" id="SQL_TYPE_DELETE"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">SQL_TYPE_DELETE</span>
			 = <span class="const-default"> 3</span>
			(line <span class="line-number">58</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">SQL - DELETE type.</p>
	
	
</div>
<a name="constSQL_TYPE_INSERT" id="SQL_TYPE_INSERT"><!-- --></A>
<div class="oddrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">SQL_TYPE_INSERT</span>
			 = <span class="const-default"> 1</span>
			(line <span class="line-number">46</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">SQL - INSERT type.</p>
	
	
</div>
<a name="constSQL_TYPE_UPDATE" id="SQL_TYPE_UPDATE"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">SQL_TYPE_UPDATE</span>
			 = <span class="const-default"> 2</span>
			(line <span class="line-number">52</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">SQL - UPDATE type.</p>
	
	
</div>
						
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Mon, 30 May 2011 15:07:23 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.1</a>
	</p>
	</div></body>
</html>